<?php  
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
 
class Homepage_controller extends CI_Controller
{
	function index()
	{
		$is_logged_in = $this->session->userdata('is_logged_in');
		if(isset($is_logged_in) && $is_logged_in)
		{
	
			$data['title']="Hello World";
			$this->load->view('header',$data);
			$this->load->view('homepage_view');
			$data['id']="feed";
			$this->load->view('footer',$data);
		}
		else
		redirect('/splash');
		
		
	}

}
?>
